package 装饰者模式;

/**
 * @author zzs
 * @ClassName Milk.java
 * @Description
 * @createTime 2022年05月10日 19:52:00
 */
public class Milk extends CoffeePacker {

    @Override
    public Integer cost() {
        return 5 + coffee.cost();
    }

    @Override
    public String description() {
        return coffee.description() + "-" +"牛奶";
    }

    public Milk(Coffee coffee) {
        super(coffee);
    }

}
